#define _CRT_SECURE_NO_WARNINGS 1

#include "queue.h"

void test()
{
	Queue queue;
	QueueInit(&queue);

	QueuePush(&queue, 1);
	QueuePush(&queue, 2);
	QueuePush(&queue, 3);
	QueuePush(&queue, 4);

	while (!QueueEmpty(&queue))
	{
		printf("/%d\\\n", QueueFront(&queue));
		QueuePop(&queue);
	}
	printf("\n");

	QueuePop(&queue);

	while (!QueueEmpty(&queue))
	{
		printf("/%d\\\n", QueueFront(&queue));
		QueuePop(&queue);
	}
	printf("\n");

	QueueDestory(&queue);
}

int main()
{
	test();
	return 0;
}